/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.garethc.designpatterns.structural.decorator;

/**
 *
 * @author Gareth
 */
public class LegDecorator extends AnimalDecorator
{

    public LegDecorator(Animal animal) {
        super(animal);
    }

    @Override
    public void describe() {
        animal.describe();
        System.out.println("I have Legs");
        dance();
    }
    
    public void dance()
    {
        System.out.println("I Can Dance");
    }

    @Override
    public String getDescription() {
        return "walking";
    }
}
